from src.col_bean.dangerous_enum import ColDangerousEnum
from src.col_bean.dns_domain_enum import ColDnsDomainEnum
from src.col_bean.entropy_field_enum import ColEntropyFieldEnum
from src.col_bean.geo_field_enum import ColGeoFieldEnum
from src.col_bean.other_field_enum import ColOtherFieldEnum
from src.col_bean.status_code_count_field_enum import ColStatusCodeCountFieldEnum
from src.col_bean.time_field_enum import ColTimeFieldEnum
from src.col_bean.xbase_col import ColPacketLen, ColUAEnum, ColURI, MinusMean, ColZValue, PacketSize, Count, ColExist, \
    HttpUri, ColSession
from src.util.common_util import printx


def print_columns_entrance(config):
    for i, item in enumerate(list(ColDangerousEnum) + list(ColDnsDomainEnum) + list(ColEntropyFieldEnum) + list(
            ColGeoFieldEnum) + list(ColOtherFieldEnum) + list(ColStatusCodeCountFieldEnum) + list(
        ColTimeFieldEnum) + list(ColPacketLen) + list(ColUAEnum) + list(ColZValue) + list(MinusMean) + list(
        ColURI) + list(
        ColExist) + list(Count) + list(PacketSize) + list(HttpUri) + list(ColSession)):
        printx(f"字段{i + 1}:{item.value} 描述:{item.get_description()}")
